import fetch from '@/utils/fetch'

export function getEmpList(data) {
  data.pageSize= '10'
  return fetch({
    url: 'nen/user/pageGetUser',
    method: 'post',
    data
  })
}

export function addUser(params) {
  return fetch({
    url: 'nen/user/createUser',
    method: 'post',
    params
  })
}

export function updateUser(params) {
  return fetch({
    url: 'nen/user/updateUser',
    method: 'post',
    params
  })
}

export function deleteUser(params) {
  return fetch({
    url: 'nen/user/deleteUser',
    method: 'post',
    params
  })
}

export function leave(params) {
  return fetch({
    url: 'nen/user/leave',
    method: 'post',
    params
  })
}

